import { http } from '@/uni_modules/uview-plus'

export const customer = {
	//微信登录获取code
	getWechatCode: (params) => http.post("/api/auth/appletsLogin",params),
	//微信获取用户信息
	getWechatUserInfo: (params) => http.post("/api/auth/perfectUserInfo",params),
    //判断是否报名
	getRegisterAudit: (params) => http.get("/api/register/getRegisterAudit",{params}),
    //报名
	register: (params) => http.post("/api/register/addRegister",params),
	//获取报名信息
	getRegisterInfo: (params) => http.get("/api/register/getRegister",{params}),
}

export const system = {
	//获取轮播图信息
	getBanner: (params) => http.get("/api/homeContent/homeContentList",{params}),
    // 获取班级信息
    getClasses: (params) => http.get("/api/register/getDeptTree",{params}),
	//获取字典参数
	getDictionary: (params) => http.get("/api/dict/list",{params}),
}
export const subject = {
	//获取课程列表
	getSubjectList: (params) => http.get("/api/category/list", {params}),
	//获取题目总数
	getSubjectCount: (params) => http.get("/api/question/questionCount", {params}),
    //获取考试题目
	getSubject: (params) => http.get("/api/question/questionList", {params}),
    //练习考试新增缓存记录
	getSubjectPractice: (params) => http.post("/api/storage/add", params),
	//获取缓存记录
	getSubjectPracticeList: (params) => http.get("/api/storage/list", {params}),
	//考试点击新增记录
	getSubjectRecord: (params) => http.post("/api/simulatedExam/sequenceExamRecord", params),
	//模拟考试提交
	getSubjectSubmit: (params) => http.post("/api/simulatedExam/submitSimulatedExam", params),
	//获取模拟考试信息
	getSubjectInfo: (params) => http.get("/api/simulatedExam/simulatedExamInfo", {params}),
	//获取模拟考试题目
	getSubjectQuestion: (params) => http.get("/api/simulatedExam/simulatedExamSubjectList", {params}),
	//获取考试记录
	getSubjectRecordList: (params) => http.get("/api/simulatedExam/mySimulatedExamList", {params}),
	//获取历史考试记录
	getSubjectRecordHistory: (params) => http.get("/api/simulatedExam/simulatedExamDetail", {params}),
	//获取模拟考试排行榜
	getSubjectRank: (params) => http.get("/api/simulatedExam/gradeRankList", {params}),
	//获取教员试题列表
	getSubjectTeacher: (params) => http.get("/api/homeContent/homeContentList", {params}),
	//历史数据
	getSubjectHistory: (params) => http.get("/api/answerRecord/get_moni_history", {params}),
	//新增顺序练习记录
	getSubjectRecordAdd: (params) => http.post("/api/simulatedExam/sequenceExamRecord", params),
}